package com.huiyuanai.mapper;

import com.huiyuanai.pojo.Department;

import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Author: liwan
 * @Description:
 * @Date: create in 2022/1/11/011
 */

@Mapper
public interface DepartmentMapper {
//    //假数据
//    private static Map<Integer, Department> departments = null;
//    static {
//        departments = new HashMap<>();
//
//        departments.put(101,new Department(101,"教学部"));
//        departments.put(102,new Department(102,"市场部"));
//        departments.put(103,new Department(103,"教研部"));
//        departments.put(104,new Department(104,"运营部"));
//        departments.put(105,new Department(105,"后勤部"));
//        departments.put(106,new Department(106,"记者部"));
//    }
//
    //获取所以部门的信息
    List<Department> getDepartments();

    //    {
//        return departments.values();
//    }
//
    //根据id查找部门
    Department getDepatmentById(Integer id);
//    {
//        return departments.get(id);
//    }
}
